Don't prevent random file systems from being unmounted.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Aug 2014 20:40:57 +0000 (13:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Aug 2014 20:40:57 +0000 (13:40 -0700)
commit8a656f47f590df3f6338c98d7c717566756d96c5
treeb9996ffcccce86063e3ab06eaaa23c8891ef6dad
parentfaa03c490658011d254ba28fce4519deede5e3e8
Don't prevent random file systems from being unmounted.

This fix relies on having the 'fchdir' function, and on having
"." be searchable (or at least readable, on platforms lacking O_SEARCH),
but that's good enough to handle the vast majority of cases and the
remaining folks can just live with the annoyance of file systems
that occasionally can't be unmounted.
* configure.ac (fchdir): New function to check for.
* lib/save-cwd.c: Copy from gnulib, except omit the part that
allocates memory, since that can cause problems in Emacs.
* lib/save-cwd.h: Copy from gnulib.
ChangeLog
configure.ac
lib/save-cwd.c
lib/save-cwd.h